package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 地图资源
 * </p>
 *
 * @author lvhao
 * @since 2020-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel
public class MapResources extends Model<MapResources> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id，自动生成")
    private Integer id;

    /**
     * x
     */
    @ApiModelProperty(value = "x")
    private Double x;

    /**
     * y
     */
    @ApiModelProperty(value = "y")
    private Double y;

    /**
     * z
     */
    @ApiModelProperty(value = "z")
    private Double z;

    /**
     * 解锁槽位数量
     */
    @ApiModelProperty(value = "解锁槽位数量")
    private Integer unlockNum;

    /**
     * 剩余重生时间
     */
    @ApiModelProperty(value = "剩余重生时间")
    private Double rebirthTime;

    /**
     * 重生时间
     */
    @ApiModelProperty(value = "重生时间")
    private Double maxRebirthTime;

    /**
     * 物品id
     */
    @ApiModelProperty(value = "物品id")
    private Integer itemId;

    /**
     * 物品数量
     */
    @ApiModelProperty(value = "物品数量")
    private Integer itemNum;

    /**
     * 耐久
     */
    @ApiModelProperty(value = "耐久")
    private Integer durable;

    /**
     * 燃烧时间
     */
    @ApiModelProperty(value = "燃烧时间")
    private Double burningTime;

    /**
     * 最大燃烧时间
     */
    @ApiModelProperty(value = "最大燃烧时间")
    private Double maxBurningTime;

    /**
     * 地图资源类型id
     */
    @ApiModelProperty(value = "地图资源类型")
    private Integer mapResourcesTypeId;

    /**
     * 地图id
     */
    @ApiModelProperty(value = "地图id")
    private Integer mapId;

    /**
     * 工作台id
     */
    @ApiModelProperty(value = "工作台id")
    private Integer worktableId;

    /**
     * rotateX
     */
    @ApiModelProperty(value = "rotateX")
    private Double rotateX;

    /**
     * rotateY
     */
    @ApiModelProperty(value = "rotateY")
    private Double rotateY;

    /**
     * rotateZ
     */
    @ApiModelProperty(value = "rotateZ")
    private Double rotateZ;

    /**
     * 保存时间
     */
    @ApiModelProperty(value = "保存时间 格式（:是英文的）：yyyy-MM-dd HH:mm:ss")
    private String saveTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
